package designPattern.singleton.register;

//枚举类实现单例
public enum EnumSingleton {
    INSTANCE;
    private Object obj;

    public static EnumSingleton getInstance() {
        return INSTANCE;
    }

    public Object getObj() {
        return obj;
    }

    public void setObj(Object obj) {
        this.obj = obj;
    }
}
